import { isEmpty } from '@/utils';

const getters = {
	userInfo: state => {
		if (isEmpty(state.userInfo)) {
			state.user.userInfo = uni.getStorageSync('userInfo') || {};
		}
		return state.user.userInfo;
	}
};
export default getters;
